<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@page import="java.util.ArrayList"%>
<%@page import="od.igor.petrov.utils.TestTableBean"%>
<%@page import="od.igor.petrov.utils.TestTableBeanPreparedCollection"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</head>
<body>
<%
		ArrayList<TestTableBean> test = TestTableBeanPreparedCollection.getReadyResult();
%>
<f:view>
<h1>Output</h1>
	<table border="1">
		<tr>
			<th><a
				href="request/request-data-servlet?sortby=1&amp;orderbydesc=<%=session.getAttribute("orderDesc")%>">ID</a></th>
			<th><a
				href="request/request-data-servlet?sortby=2&amp;orderbydesc=<%=session.getAttribute("orderDesc")%>">Item</a></th>
			<th><a
				href="request/request-data-servlet?sortby=3&amp;orderbydesc=<%=session.getAttribute("orderDesc")%>">Firm</a></th>
		</tr>
		<%
			for (TestTableBean bean : test) {
		%>
		<tr>
			<th><%=bean.getId()%></th>
			<th><%=bean.getItem()%></th>
			<th><%=bean.getFirm()%></th>
		</tr>
		<%
			}
		%>
	</table>
	<br>
	<br>
	<a href="Index.jsp">Go to Main Page</a>
</f:view>
</body>
</html>